﻿<UserControl x:Class="OI.Controls.DrillDownCallout"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d" d:DesignHeight="300" d:DesignWidth="400">

    <Grid x:Name="LayoutRoot">
        
        <Border Background="White" CornerRadius="8">
        
            <ContentControl x:Name="CalloutBody"
                            HorizontalContentAlignment="Stretch"
                            VerticalAlignment="Center"
                            BorderThickness="0"
                            Margin="8, 8, 10, 8"
                            BorderBrush="Transparent"/>
        
        </Border>

        <HyperlinkButton  HorizontalAlignment="Right" VerticalAlignment="Top"  Click="HyperlinkButtonClick" Margin="8">
            <Border Width="24" Height="24" CornerRadius="3,3,3,3" Background="#80000000" BorderBrush="#40000000" BorderThickness="1">
                <TextBlock FontSize="16" FontWeight="Bold" Foreground="#FFFFFF" Margin="0,-3,0,0"
                           HorizontalAlignment="Center" VerticalAlignment="Center">X</TextBlock>
            </Border>
        </HyperlinkButton>

        <Grid.RenderTransform>
            <ScaleTransform x:Name="CalloutScaleTrans"  ScaleY="-1.0" />
        </Grid.RenderTransform>
    </Grid>
</UserControl>
